%%%-------------------------------------------------------------------
%%% @author liuwentao
%%% @doc
%%%        背包协议入口
%%% @end
%%% Created : 26. 7月 2021 15:02
%%%-------------------------------------------------------------------
-module(package_rpc).
-author("liuwentao").

%% API
-export([
    handle/3
]).

-include("common.hrl").
-include("role.hrl").


%% 查询角色列表
handle(11000, {}, _Role = #role{}) ->
    ok;

%% 容错匹配
handle(_Cmd, _Data, _Role) ->
    ?DEBUG("模块[~w]收到无效的RPC调用[~w]: ~w", [?MODULE, _Cmd, _Data]),
    {error, unknow_command}.

